# sudo apt install git

# git config --global user.name 'Sergey Andreev' 
# git config --global user.email 'sergey.andreev@huawei.com'

export DEV_HOME=`pwd`
echo "DEV_HOME ${DEV_HOME}"

# mkdir arkcompiler && cd arkcompiler

mkdir runtime_core && cd runtime_core
git clone -b OpenHarmony_feature_20241108 https://gitee.com/openharmony/arkcompiler_runtime_core.git ./

cd ..

mkdir ets_frontend && cd ets_frontend
git clone -b OpenHarmony_feature_20241108 https://gitee.com/openharmony/arkcompiler_ets_frontend.git ./

cd ..

ln -s $DEV_HOME/ets_frontend/ets2panda $DEV_HOME/runtime_core/static_core/tools/es2panda 

cd ..

sudo $DEV_HOME/runtime_core/static_core/scripts/install-deps-ubuntu -i=dev -i=test

$DEV_HOME/runtime_core/static_core/scripts/install-third-party --force-clone
